n=int(input("n="))
sum=0
for i in range (0,n+1):
     sum=sum+i
print("sum=", sum)
